<template>
  <div class="home">
    <Topnav/>
    <div class="banner">
      <a href="#"> <img alt="Drop Logo" src="../assets/logo.png"/>
        <h1>DropUI</h1>
      </a>
      <span>基于 Vue3.0 的轻量、极简UI组件库</span>
      <p class="actions">
        <router-link to="/doc">开始</router-link>
        <a href="https://gitee.com/zhangdeshou/drop-ui" class="plain">Github</a>
      </p>
    </div>
    <main>
      <div>
        <h2>极简轻量</h2>
        <p>Vue3.0使体积更小</p>
        <p>创造轻松高效的项目体验</p>
      </div>
      <div>
        <h2>高效</h2>
        <p>单元测试</p>
        <p>每个组件都严格单元测试过</p>
      </div>
      <div>
        <h2>新技术</h2>
        <p>全面支持TypeScript</p>
        <p>基于 Vue3.0 + Vue-Router 4 功能更全</p>
      </div>
    </main>
    <footer>MIT Licensed | Copyright © 2020-present zhangdeshou</footer>
  </div>
</template>
<script>
  import Topnav from "../components/Topnav.vue"

  export default {
    components: {Topnav}
  }
</script>

<style lang="scss" scoped>
  .home {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
  }

  .banner {
    flex-grow: 1;
    padding-top: 130px;

    h1 {
      margin-top: 25px;
      font-weight: 400;
    }

    span {
      display: inline-block;
      margin-top: 10px;
    }

    .actions {
      margin-top: 50px;

      a {
        display: inline-block;
        margin: 0 10px;
        width: 130px;
        height: 40px;
        line-height: 40px;
        background: #50a0ff;
        color: #fff;
        border-radius: 30px;

        &.plain {
          border: 2px solid #50a0ff;
          background: #fff;
          color: #50a0ff;
        }
      }
    }

    @media (max-width: 500px) {
      padding-top: 100px;
      .actions {
        margin-top: 20px;
      }
      img {
        width: 100px;
      }
    }
  }


  main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    border-top: 1px solid #eee;
    padding: 20px 0 20px 0;

    > div {
      width: 20%;

      h2 {
        margin-bottom: 15px;
      }
    }

    @media (max-width: 500px) {
      display: flex;
      flex-direction: column;
      border: none;
      padding: 40px 0 20px 0;
      > div {
        width: 100%;
        margin-bottom: 30px
      }
    }
  }

  footer {
    font-size: 14px;
    height: 30px;
  }

</style>
